import request from '@/utils/request'
//根据订单号查询订单内容
export function getOrderInfo(orderId) {
  return request({
    url: '/order/allocate/queryInsideRecOrder/'+orderId,
    method: 'get',
  })
}

//订单接单
export function takeOrder(param) {
  return request({
    url: '/order/allocate/toCus',
    method: 'post',
    data: param
  })
}



// 查询订单指派列表
export function listAllocate(query) {
  return request({
    url: '/order/allocate/list',
    method: 'get',
    params: query
  })
}

// 查询订单指派详细
export function getAllocate(id) {
  return request({
    url: '/order/allocate/' + id,
    method: 'get'
  })
}

// 新增订单指派
export function addAllocate(data) {
  return request({
    url: '/order/allocate',
    method: 'post',
    data: data
  })
}

// 修改订单指派
export function updateAllocate(data) {
  return request({
    url: '/order/allocate',
    method: 'put',
    data: data
  })
}

// 删除订单指派
export function delAllocate(id) {
  return request({
    url: '/order/allocate/' + id,
    method: 'delete'
  })
}
